package com.snake.controllers;

import java.io.UnsupportedEncodingException;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping(value = "/")
public class RootController {
    @ApiOperation(value = "获取微信证书MP")
    //@ApiImplicitParam(paramType = "header", name = "token", dataType = "String")
    @RequestMapping(value = "/MP_verify_8K8kJLZf85LtMRin.txt", method = RequestMethod.GET)
    public String getMPVerify() throws UnsupportedEncodingException {
        return "8K8kJLZf85LtMRin";
    }
    
    @RequestMapping(value = "/test", method = RequestMethod.GET)
    public String getTest() throws UnsupportedEncodingException {
        return "hello spring-boot";
    }
    
    
}
